package innerclass2;

/**
 * User: 86156
 * Date: 2023-04-13
 * Time: 10:45
 */
public class Test {
    public static void main(String[] args) {

        /*
         * 匿名内部类
         * new 类名/接口名(){
         *    重写方法;
         * };
         *
         * */

        
        new Swim(){
            @Override
            public void Swim() {
                System.out.println("重写了游泳的方法");
            }
        };
    }
}
